package MarketShopping;

public class Market {
	private Product[] productList;
	private String marketName;
	public String setName;
	public String getMarketNme(){
		return marketName;
	}
	public void setMarketName(String marketName){
		this.marketName=marketName;
	}
	public Product[] getProductList(){
		return productList;
	}
	public void setProductList(Product[] productList){
		this.productList=productList;
	}
	public Product sell(String productName){
		for(int i=0;i<productList.length;i++){
			if(productList[i].getProductName().equals(productName)){
				return productList[i];
			}
		}
		return null;
	}
	

}
